package com.jintoufs.service.scene;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.customer.Customer;
import com.jintoufs.domain.scene.SceneTicket;

import java.util.List;
import java.util.Map;

public interface SceneTicketService {

    /**
     * 删除
     */
    void delete(String id);


    /**
     * 更新
     */
    void update(SceneTicket sceneTicket,Customer customer);

    /**
     * 添加
     */
    SceneTicket add(SceneTicket sceneTicket,Customer customer);

    /**
     * 根据参数查询
     */
    List<Map<String,Object>> queryByParams(Map<String, Object> params);
    /**
     * 根据参数查询
     * 用于活动创建
     */
    List<Map<String,Object>> selectByParams(Map<String, Object> params);
    /**
     * 根据条件查询
     * @param filters 属性列表，过滤存在的属性值
     */
    List<Map<String,Object>> getByFilter(QueryFilters filters);

    SceneTicket queryById(String id);

    Integer getMinReserve(String id, String startDate);
}
